Skip to main content

Group Link Android API

Methods​

void register(Context context, String appLabel, boolean debuggable);

/*
* Method used to register the grouplink SDK on server and start
* scanning, for Grouplink devices.
* context - context of application.
* appLabel - a hash generated and provided by Grouplink to identify your application on our backend.
* debbugable - shows a notification to verify if the sdk is scanning.
* debbugable *true* should only be used on testing enviroments.
*/

void register(
Context context,
String appLabel,
ProximityDetector proximityDetector,
boolean debuggable
);

/*
* Method used to register the grouplink SDK on server and start
* scanning, for Grouplink devices.
* context - context of application.
* appLabel - a hash generated and provided by Grouplink to identify your application on our backend.
* proximityDetector - a listener to microinteraction events,
* limited availability.
* debbugable - shows a notification to verify if the sdk is scanning.
* debbugable *true* should only be used on testing enviroments.
*/
void askForAutoStartPermission(Activity activity);

/*
* A helper for configuration on Xiaomi devices and Asus devices
* with device manager app.
*/
void getUserId(
Context context,
GrouplinkUserIdListener grouplinkUserIdListener
);

/*
** Api for getting UserId of the app.
*/
/*
* Set a custom notification icon on grouplink offline notifications.
* @resId param: resource Id of the customized icon.
*/
public static void setNotificationResId(Context context, int resId);